#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	float a = 0;
	float b = 0;
	scanf("%f", &a);
	b = 5 * (a - 32) / 9;
	printf("%.5f", b);
	return 0;
}